package com.dimanche.library_base.utils;

import com.alibaba.android.arouter.launcher.ARouter;
import com.dimanche.library_base.constant.RouterPath;

/**
 * author : Dimanche
 * date   : 2021/3/3 9:47
 * desc   :
 * version: 1.0
 */
public class RouterUtil {

    /**
     * 跳转到登陆页面
     */
    public static void launchLogin() {
        ARouter.getInstance().build(RouterPath.Login.AC_LOGIIN).navigation();
    }

    /**
     * 跳转到Home页面
     */
    public static void launchHome() {
        ARouter.getInstance().build(RouterPath.Home.AC_HOME).navigation();
    }

    /**
     * 打开课程页面
     */
    public static void launchCourse() {
        ARouter.getInstance().build(RouterPath.Course.AC_MAIN).navigation();
    }

}
